home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / DATABASE / ACCSDBS.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-05-11  |  5KB  |  94 lines

  1. @echo off
  2. if NOT "%1"=="" goto itsok
  3. echo *************************************************************************
  4. echo *                                                                       *
  5. echo *                   Microsoft Access Companion Disk                     *
  6. echo *               Copyright (c) Microsoft Corporation 1993                *
  7. echo *                      May 10, 1993 - Edition 1.0                       *
  8. echo *                                                                       *
  9. echo *************************************************************************
  10. echo *                                                                       *
  11. echo *  This batch program installs the companion disk to your C:\ACCESS     *
  12. echo *  directory by default.  If you wish to override this default          *
  13. echo *  installation path, enter a new installation path on the command      *
  14. echo *  line as shown below.                                                 *
  15. echo *                                                                       *
  16. echo *  REQUIREMENTS:  3.8 MB of free hard disk space                        *
  17. echo *                                                                       *
  18. echo *  USAGE:  INSTALL [drive]:\[path]                                      *
  19. echo *                                                                       *
  20. echo *     Where [drive] is the drive letter and [path] is the directory     *
  21. echo *     into which the files will be installed.                           *
  22. echo *                                                                       *
  23. echo *  Example:  INSTALL C:\ACCESS                                          *
  24. echo *                                                                       *
  25. echo *************************************************************************
  26. echo .
  27. ync Install into default directory (Yes/No/Cancel)?
  28. if errorlevel=2 goto egress
  29. if errorlevel=1 goto egress
  30. if errorlevel=0 goto defaultinst
  31.  
  32. :DEFAULTINST
  33. install c:\access
  34. goto egress
  35.  
  36. :ITSOK
  37. echo .
  38. rem test for existence of the specified directory
  39. if exist %1\nul goto testfile
  40. echo creating %1
  41. echo .
  42. md %1
  43.  
  44. :TESTFILE
  45. rem test for the existence of files with the same name
  46. if exist %1\msforms.mdb goto exists
  47. if exist %1\mssweets.mdb goto exists
  48. if exist %1\mscms.mdb goto exists
  49. if exist %1\msdirect.mdb goto exists
  50.  
  51. :COPYFILES
  52. echo Decompressing Sample Applications...
  53. echo .
  54. echo msforms.mdb (file 1 of 4)
  55. compress d msforms.md$ %1\msforms.mdb
  56. echo mssweets.mdb (file 2 of 4)
  57. compress d mssweets.md$ %1\mssweets.mdb
  58. echo mscms.mdb (file 3 of 4)
  59. compress d mscms.md$ %1\mscms.mdb
  60. echo msdirect.mdb (file 4 of 4)
  61. compress d msdirect.md$ %1\msdirect.mdb
  62. echo .
  63. echo **************************************************************************
  64. echo *                                                                        *
  65. echo *                        INSTALLATION COMPLETE                           *
  66. echo *                                                                        *
  67. echo *  Please load Microsoft Access to view your sample database files.      *
  68. echo *                                                                        *
  69. echo *          MSFORMS.MDB .... sample data entry forms                      *
  70. echo *          MSSWEETS.MDB ... sample database for small businesses         *
  71. echo *          MSCMS.MDB ...... sample Contact Management application        *
  72. echo *          MSDIRECT.MDB ... directory of Access products & services      *
  73. echo *                                                                        *
  74. echo *  The sample databases contained on this 'companion disk' have been     *
  75. echo *  provided purely as an aid to help users learn more about Microsoft    *
  76. echo *  Access and are therefore provided 'as is'. Microsoft is unable to     *
  77. echo *  provide support for these samples due to the nature of their design.  *
  78. echo *                                                                        *
  79. echo **************************************************************************
  80. goto egress
  81.  
  82. :EXISTS
  83. echo ************************ WARNING! *****************************
  84. echo One or more of the sample files already exists in the specified
  85. echo directory. Overwriting will replace the existing files with new
  86. echo copies from the Microsoft Access Companion Disk.
  87. echo ***************************************************************
  88. echo .
  89. ync Overwrite existing files (Yes/No/Cancel)?
  90. if errorlevel=2 goto egress
  91. if errorlevel=1 goto egress
  92. if errorlevel=0 goto copyfiles
  93. :EGRESS
  94.